package com.imooc;

public class ArrMaxValueDemo {

	public static void main(String[] args) {
		int[] a = {12,23,34,45,67,23,1,23,34,465,12,345,12};
		for(int n:a) {
			System.out.println(n);
		}
		
		int max = a[0];
		for(int i=1;i<a.length;i++){
			if(max<a[i]) {
				max = a[i];
			}
		}
		System.out.println(max);
		

	}
}
